
#ifndef TINYRAMFS_H
#define TINYRAMFS_H

// #include

#ifdef __cplusplus
extern "C" {
#endif

#define TINYRAMFS_TAG_INVALID	0xffff

int init(void);
void dump_data(void);
void dump_mgr(int start, int end);

unsigned short create(unsigned short tag);
int write(unsigned short tag, const unsigned char *data, int len);
int read(unsigned short tag, unsigned char *data, int len);
int delete(unsigned short tag);

#ifdef __cplusplus
}
#endif

#endif /* TINYRAMFS_H */
